#include "SwordAndShield.h"

// Constructor
CSwordAndShield::CSwordAndShield(void)
{
}

// Destructor
CSwordAndShield::~CSwordAndShield(void)
{
}

// Initialise
void CSwordAndShield::Initialise(const int SIZE_X, const int SIZE_Y, const int level)
{
	// Initialise Stats
	this->CWeapon::Initialise( SIZE_X, SIZE_Y, ATTACK_ANIMATION_TIMER, level, ATTACK_DAMAGE, ATTACK_LEVEL_MODIFIER, ATTACK_SPEED );

	// Initialise Sprites
	this->InitSprite( TOTAL );

	this->SetSprite( PRIMARY_START		, FILEPATH_WEAPON_SWORDANDSHIELD_PRIMARY_START );
	this->SetSprite( PRIMARY_END		, FILEPATH_WEAPON_SWORDANDSHIELD_PRIMARY_END );

	this->SetSprite( SECONDARY_START	, FILEPATH_WEAPON_SWORDANDSHIELD_SECONDARY_START );
	this->SetSprite( SECONDARY_END		, FILEPATH_WEAPON_SWORDANDSHIELD_SECONDARY_END );
	
	// Initialise Data
	this->sprite_anim_start		= PRIMARY_START;
	this->sprite_anim_end		= PRIMARY_END;

	this->type_id				= SWORDANDSHIELD;
}

// Primary Attack
void CSwordAndShield::AttackPrimaryAttack(void)
{
	// Primary Attack Animation
	this->sprite_anim_start	= PRIMARY_START;
	this->sprite_anim_end	= PRIMARY_END;

	CWeapon::AttackPrimaryAttack();
}

// Secondary Attack
void CSwordAndShield::AttackSecondaryAttack(void)
{
	// Secondary Attack Animation
	this->sprite_anim_start	= SECONDARY_START;
	this->sprite_anim_end	= SECONDARY_END;

	CWeapon::AttackSecondaryAttack();
}